/*
 * FileReader.h
 *
 *  Created on: Nov 20, 2012
 *      Author: William Agnew [agnewwt@muohio.edu]
 */

#ifndef FILEREADER_H_
#define FILEREADER_H_

#include <string>
#include <iostream>
#include <fstream>
#include "Map.h"
using namespace std;

#define SYMBOL_MESSAGE "X"
#define SYMBOL_NOMESSAGE "."

class FileReader
{
public:
	/**
	 * Read the contents of a file and fill the map
	 *
	 * @return Success flag
	 */
	int read();
	FileReader();
	FileReader(string fileName, Map *map);
	virtual ~FileReader();
	/**
	 * Print the numerics of the map
	 */
	void printMetrics();
	Map* getMap();

private:
	string fileName;
	Map* map;

};

#endif /* FILEREADER_H_ */
